import 'package:library_base/entities/generated/json/base/json_convert_content.dart';
import 'package:library_base/entities/summary_child_entity.dart';

SummaryChildEntity $SummaryChildEntityFromJson(Map<String, dynamic> json) {
  final SummaryChildEntity loginBeanEntity = SummaryChildEntity();
  final String? orderId = jsonConvert.convert<String>(json['orderId']);
  if (orderId != null) {
    loginBeanEntity.orderId = orderId;
  }
  final String? consignee = jsonConvert.convert<String>(json['consignee']);
  if (consignee != null) {
    loginBeanEntity.consignee = consignee;
  }
  final int? goodsCount = jsonConvert.convert<int>(json['goodsCount']);
  if (goodsCount != null) {
    loginBeanEntity.goodsCount = goodsCount;
  }
  final double? standardWeight = jsonConvert.convert<double>(json['standardWeight']);
  loginBeanEntity.standardWeight = standardWeight;

  final String? stationTime = jsonConvert.convert<String>(json['stationTime']);
  if (stationTime != null) {
    loginBeanEntity.stationTime = stationTime;
  }
  final String? address = jsonConvert.convert<String>(json['address']);
  if (address != null) {
    loginBeanEntity.address = address;
  }
  return loginBeanEntity;
}

Map<String, dynamic> $SummaryChildEntityToJson(SummaryChildEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['orderId'] = entity.orderId;
  data['consignee'] = entity.consignee;
  data['goodsCount'] = entity.goodsCount;
  data['stationTime'] = entity.stationTime;
  data['address'] = entity.address;
  return data;
}
